/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package coms.action;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
import com.opensymphony.xwork2.Preparable;
import com.opensymphony.xwork2.Validateable;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.SessionAware;

/**
 *
 * @author Atul
 */
public class ComsActionSupport extends ActionSupport implements SessionAware, ServletRequestAware, Validateable{
    protected HttpServletRequest request;
    protected Map<String, Object> session;
    @Override
    public void setSession(Map<String, Object> session) {
        this.session = session;
    }

    @Override
    public void setServletRequest(HttpServletRequest request) {
       this.request = request;
    }

    public HttpServletRequest getRequest() {
        return request;
    }

    public Map<String, Object> getSession() {
        return session;
    }    
}
